﻿// Odatavalidator ver. 1.0 
// Copyright (c) Microsoft Corporation
// All rights reserved. 

// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at 
//
//           http://www.apache.org/licenses/LICENSE-2.0 

// THIS CODE IS PROVIDED ON AN  *AS IS* BASIS, WITHOUT WARRANTIES OR 
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
// LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS 
// FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. 

// See the Apache Version 2.0 License for specific language governing 
// permissions and limitations under the License.

namespace ODataValidator.Rule.Helper
{
    #region Namespace.
    using System.Collections.Generic;
    #endregion

    /// <summary>
    /// The ChangeTrackingType structure.
    /// </summary>
    public struct ChangeTrackingType
    {
        public ChangeTrackingType(bool? supported, List<string> filterableProperties, List<string> expandableProperties)
        {
            this.supported = supported;
            this.filterableProperties = filterableProperties;
            this.expandableProperties = expandableProperties;
        }

        /// <summary>
        /// Gets the change-tracking supported result.
        /// </summary>
        public bool? Supported
        {
            get
            {
                return supported;
            }
        }

        /// <summary>
        /// Gets the filterable properties which support change-tracking.
        /// </summary>
        public List<string> FilterableProperties
        {
            get
            {
                return filterableProperties;
            }
        }

        /// <summary>
        /// Gets the expandable properties which support change-tracking.
        /// </summary>
        public List<string> ExpandableProperties
        {
            get
            {
                return expandableProperties;
            }
        }

        /// <summary>
        /// Indicate whether the service or the entity-set support change-tracking.
        /// </summary>
        private bool? supported;

        /// <summary>
        /// Change tracking supports filters on these properties.
        /// </summary>
        private List<string> filterableProperties;

        /// <summary>
        /// Change tracking supports these properties expanded.
        /// </summary>
        private List<string> expandableProperties;
    }
}
